// 删除最后一条数据回到第一页
export function resetPage(total, currentPage, pagesize) {
    const totalPage = Math.ceil((total - 1) / pagesize); // 总页数

    currentPage = currentPage > totalPage ? totalPage : currentPage;
    currentPage = currentPage < 1 ? 1 : currentPage;
    return currentPage;
}
